package com.example.PullGame;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

import com.example.MatchGame.MatchGame;
import com.example.MatchGame.StartMatchActivity;
import com.example.wonderfulradish.R;

public class PullOverThree extends AppCompatActivity implements View.OnClickListener {
    private Button restartButton,cancelButton;
    private ImageView tutuIamge,xinxinImage;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.pull_over_three);
        restartButton=(Button) findViewById(R.id.restartbutton);
        restartButton.setOnClickListener(this);
        cancelButton=(Button) findViewById(R.id.cancelbutton);
        cancelButton.setOnClickListener(this);
    }

    @Override
    public void onClick(View v){
        switch (v.getId()){
            case R.id.restartbutton:
                Intent intent=new Intent(PullOverThree.this,PullGame.class);
                startActivity(intent);
                finish();
                break;
            case R.id.cancelbutton:
                Intent intent1=new Intent(PullOverThree.this,StartPullActivity.class);
                startActivity(intent1);
                finish();
                break;
            default:
                break;
        }
    }
}
